<?php
/**
 * Zephyr Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://code.google.com/p/zephyr-framework/wiki/License
 *
 * @category   Zephyr
 * @package    Zephyr_Version
 * @copyright  Copyright (c) 2008 Peo Development Group (http://peo.com.pl)
 * @license    http://code.google.com/p/zephyr-framework/wiki/License     New BSD License
 * @version    $Id: Version.php 5 2008-03-20 13:44:38Z w.naruniec $
 */

/**
 * Class to store and retrieve the version of Zephyr Framework.
 *
 * @category   Zephyr
 * @package    Zephyr_Version
 * @copyright  Copyright (c) 2008 Peo Development Group (http://peo.com.pl)
 * @license    http://code.google.com/p/zephyr-framework/wiki/License     New BSD License
 */
final class Zephyr_Version
{
    /**
     * Zephyr Framework version identification - see compareVersion()
     */
    const VERSION = '0.1.0';

    /**
     * Compare the specified Zephyr Framework version string $version
     * with the current Zephyr_Version::VERSION of the Zend Framework.
     *
     * @param  string  $version  A version string (e.g. "0.1.0").
     * @return boolean           -1 if the $version is older,
     *                           0 if they are the same,
     *                           and +1 if $version is newer.
     *
     */
    public static function compareVersion($version)
    {
        return version_compare($version, self::VERSION);
    }
}
